-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: clarify unshift EOF #29950
doc: clarify unshift EOF #29950
Conversation
@ronag Could you please describe what the present behavior is? (i.e. before this change.) |
@Fishrock123: Previously |
As in, end the stream? It seems reasonable then to also accept |
Well, it's not really 'expedited' since it is exactly the same as Unshifting "eof" sounds very weird to me. Though, now that you question it there is probably no harm in it either... I don't mind closing this. |
I think there would at least be value in documenting |
I think we should document it, and then think about if you should be able to actually unshift EOF so that it comes before other data. |
@nodejs/streams |
Why we should not unshift EOF? |
I guess the confusion is, what does it mean to unshift EOF? Right now it behaves exactly like push EOF which is unexpected/confusing/undefined. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not see a compelling reason to change this.
I changed this to only a doc update. @Fishrock123 |
20a6c34
to
4f73edf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
7d15e65
to
e184520
Compare
Landed in 273d38b |
PR-URL: #29950 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
PR-URL: #29950 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
PR-URL: #29950 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
PR-URL: #29950 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
PR-URL: #29950 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
We should not allow unshifting EOF.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes